/*
 * @Author: heinan
 * @Date: 2021-07-14 11:59:06
 * @Last Modified by: heinan
 * @Last Modified time: 2021-07-15 17:08:17
 */

import { lazy } from "react";

const routes = [
  {
    path: "/home",
    name: "home",
    component: lazy(() => import("@/views/home")),
    children: [
      {
        path: "/home/rank",
        name: "rank",
        component: lazy(() => import("@/views/home/rank")),
      },
    ],
  },
  {
    path: "/mine",
    name: "mine",
    component: lazy(() => import("@/views/mine")),
  },
  {
    path: "/cart",
    name: "cart",
    component: lazy(() => import("@/views/cart")),
  },
  {
    path: "/",
    name: "default",
    redirect: "/home",
  },
  {
    name: "notFound",
    component: lazy(() => import("@/components/layout/404")),
  },
];
export default routes;
